home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / tree.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  4KB  |  104 lines

  1. /*
  2.  * $XConsortium: Tree.h,v 1.11 91/05/04 18:59:13 rws Exp $
  3.  *
  4.  * Copyright 1990 Massachusetts Institute of Technology
  5.  * Copyright 1989 Prentice Hall
  6.  *
  7.  * Permission to use, copy, modify, and distribute this software for any
  8.  * purpose and without fee is hereby granted, provided that the above
  9.  * copyright notice appear in all copies and that both the copyright notice
  10.  * and this permission notice appear in supporting documentation.
  11.  * 
  12.  * M.I.T., Prentice Hall and the authors disclaim all warranties with regard
  13.  * to this software, including all implied warranties of merchantability and
  14.  * fitness.  In no event shall M.I.T., Prentice Hall or the authors be liable
  15.  * for any special, indirect or cosequential damages or any damages whatsoever
  16.  * resulting from loss of use, data or profits, whether in an action of
  17.  * contract, negligence or other tortious action, arising out of or in
  18.  * connection with the use or performance of this software.
  19.  * 
  20.  * Authors:  Jim Fulton, MIT X Consortium,
  21.  *           based on a version by Douglas Young, Prentice Hall
  22.  * 
  23.  * This widget is based on the Tree widget described on pages 397-419 of
  24.  * Douglas Young's book "The X Window System, Programming and Applications 
  25.  * with Xt OSF/Motif Edition."  The layout code has been rewritten to use
  26.  * additional blank space to make the structure of the graph easier to see
  27.  * as well as to support vertical trees.
  28.  */
  29.  
  30.  
  31. #ifndef _XawTree_h
  32. #define _XawTree_h
  33.  
  34. #include <X11/Xmu/Converters.h>
  35. #include <X11/Xfuncproto.h>
  36.  
  37. /******************************************************************************
  38.  * 
  39.  * Tree Widget (subclass of ConstraintClass)
  40.  * 
  41.  ******************************************************************************
  42.  * 
  43.  * Parameters:
  44.  * 
  45.  *  Name                Class              Type            Default
  46.  *  ----                -----              ----            -------
  47.  * 
  48.  *  autoReconfigure     AutoReconfigure    Boolean         FALSE
  49.  *  background          Background         Pixel           XtDefaultBackground
  50.  *  foreground          Foreground         Pixel           XtDefaultForeground
  51.  *  gravity             Gravity            XtGravity       West
  52.  *  hSpace              HSpace             Dimension       20
  53.  *  lineWidth           LineWidth          Dimension       0
  54.  *  vSpace              VSpace             Dimension       6
  55.  * 
  56.  * 
  57.  * Constraint Resources attached to children:
  58.  * 
  59.  *  treeGC              TreeGC             GC              NULL
  60.  *  treeParent          TreeParent         Widget          NULL
  61.  * 
  62.  * 
  63.  *****************************************************************************/
  64.  
  65.                                         /* new instance field names */
  66. #ifndef _XtStringDefs_h_
  67. #define XtNhSpace "hSpace"
  68. #define XtNvSpace "vSpace"
  69. #define XtCHSpace "HSpace"
  70. #define XtCVSpace "VSpace"
  71. #endif
  72.  
  73. #define XtNautoReconfigure "autoReconfigure"
  74. #define XtNlineWidth "lineWidth"
  75. #define XtNtreeGC "treeGC"
  76. #define XtNtreeParent "treeParent"
  77. #define XtNgravity "gravity"
  78.  
  79.                                         /* new class field names */
  80. #define XtCAutoReconfigure "AutoReconfigure"
  81. #define XtCLineWidth "LineWidth"
  82. #define XtCTreeGC "TreeGC"
  83. #define XtCTreeParent "TreeParent"
  84. #define XtCGravity "Gravity"
  85.  
  86. #define XtRGC "GC"
  87.                                         /* external declarations */
  88. extern WidgetClass treeWidgetClass;
  89.  
  90. typedef struct _TreeClassRec *TreeWidgetClass;
  91. typedef struct _TreeRec      *TreeWidget;
  92.  
  93. _XFUNCPROTOBEGIN
  94.  
  95. extern void XawTreeForceLayout (
  96. #if NeedFunctionPrototypes
  97.     Widget /* tree */
  98. #endif
  99. );
  100.  
  101. _XFUNCPROTOEND
  102.  
  103. #endif /* _XawTree_h */
  104.